package com.ruoyi.activiti;

import com.ruoyi.common.security.annotation.EnableCustomConfig;
import com.ruoyi.common.security.annotation.EnableRyFeignClients;
import com.ruoyi.common.swagger.annotation.EnableCustomSwagger2;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@EnableCustomConfig
@MapperScan(basePackages = {"com.ruoyi.activiti.mapper"})
@EnableCustomSwagger2
@EnableRyFeignClients  // 寻找标记有 @FeignClient 注解的接口，并创建代理对象，以便使用这些接口调用远程服务
@SpringBootApplication(exclude =  {
        org.activiti.spring.boot.SecurityAutoConfiguration.class,
//        org.springframework.boot.autoconfigure.security.servlet.SecurityAutoConfiguration.class
})
//@SpringBootApplication
public class RouyiActivitiApplication {

    public static void main(String[] args) {
        SpringApplication.run(RouyiActivitiApplication.class, args);
    }

}
